<?
$items = $this->items;
?>
<p>
    Total items in this category: <?= $this->total ?>
</p>

<table>
    <tbody>
    <? foreach ($items as $item): ?>
    <tr>
        <td><?= $item['name'] ?></td>
        <td><?= $item['email'] ?></td>
        <td><?= $item['content'] ?></td>
        <td><?= $item['subrubric']['name'] ?></td>
        <td><?= $item['updatedAt']->format('Y-m-d') ?></td>
    </tr>
        <? endforeach; ?>
    </tbody>
</table>

<?
$pagesCount = $this->paginator->getPages();
?>
<? if ($pagesCount->pageCount > 1): ?>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'items/controls.phtml', array('rubric' => $this->rubric)); ?>
<? endif; ?>